package com.example.demo.model;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Data
public class IdGeneration implements Serializable {
    private static final long serialVersionUID = -5103486893703335506L;

    private Long id;
    private String className;
    private Long idNum;
    private String updateTime;
    private Timestamp createTime;

    public IdGeneration() {
    }

    public IdGeneration(String className, Long idNum, String updateTime) {
        this.className = className;
        this.idNum = idNum;
        this.updateTime = updateTime;
        this.createTime = new Timestamp((new Date()).getTime());
    }
}
